package com.lyc.entity.vo;

import com.lyc.entity.Address;

/**
 * @Author YooLin
 * @Date 2017/8/17 10:12
 * @Description 地址页面展示实体
 */
public class AddressVo {
    private Address addr;//地址实体
    private String pca;//省-市-区
    private String pca2;//省 市 区
    private String rp;//接收人和联系电话

    public String getPca() {
        return addr.getProvince()+"-"+addr.getCity()+"-"+addr.getArea();
    }

    public void setPca(String pca) {
        this.pca = pca;
    }

    public Address getAddr() {
        return addr;
    }

    public void setAddr(Address addr) {
        this.addr = addr;
    }

    public String getPca2() {
        return addr.getProvince()+" "+addr.getCity()+" "+addr.getArea();
    }

    public void setPca2(String pca2) {
        this.pca2 = pca2;
    }

    public String getRp() {
        return "("+addr.getReceiver()+"收) "+addr.getTelephone();
    }

    public void setRp(String rp) {
        this.rp = rp;
    }
}
